﻿<%@ Page Title="POSSystem | Customer Statement Report" Theme="POSSystem" Language="C#" MasterPageFile="~/Application.Master" Debug="true"
    AutoEventWireup="true" CodeBehind="CustomerStatement.aspx.cs" Inherits="WebUI.Report.CustomerStatement" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/Controls/SysControls/PageHeader.ascx" TagPrefix="uc" TagName="PageHeader" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ApplicationHeadHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ApplicationContentHolder" runat="server">
    <script type="text/javascript">
        enableLoadingPanel = false;
    </script>
    <uc:PageHeader ID="pageHeader" Text="Report" ImageURL="~/Images/report.png" runat="server" />
    <table width="100%">
        <tr>
            <td style="width: 100%; text-align: left; vertical-align: top">
                <asp:Panel ID="panel" runat="server" class="primaryPanel">
                    <div class="titleBar">
                        <asp:Label ID="lblTitle1" runat="server" CssClass="titleContent">Customer Statement Report</asp:Label>
                    </div>
                    <div class="primaryFrameNoBorder">
                        <table width="100%">
                            <tr>
                                <td style="text-align: center; vertical-align:middle">
                                    <asp:Label ID="lalbelHint" class='labelHint' runat="server" Text="Nothing to display. Click Generate to create report."></asp:Label>
                                    <rsweb:ReportViewer HyperlinkTarget="_blank" ID="rptViewer" runat="server"  Width="100%" Visible="false" ShowWaitControlCancelLink="false">
                                        <LocalReport EnableHyperlinks="true"></LocalReport>
                                    </rsweb:ReportViewer>
                                </td>
                                <td style="width: 320px; vertical-align: top; text-align: right;">
                                    <asp:Panel ID="panelReportInfo" runat="server" BackColor="#dfedff">
                                        <table width="100%">
                                            <tr>
                                                <td style='text-align: right; vertical-align: top; width: 80px'>
                                                    <asp:Label class='labelMessage' ID="label4" runat="server" Text="Customer:"></asp:Label>
                                                </td>
                                                <td style='text-align: left; vertical-align: top;'>
                                                    <asp:DropDownList ID="ddlCustomer" runat="server" Width="200px">
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator Display="Dynamic" ValidationGroup="Save" ID="reqCustomerPhone"
                                                        runat="server" ControlToValidate="ddlCustomer" class="requiredField" Text="required"
                                                        ErrorMessage="required"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style='text-align: right; vertical-align: top; width: 80px'>
                                                    <asp:Label class='labelMessage' ID="label1" runat="server" Text="Date: "></asp:Label>
                                                </td>
                                                <td style='text-align: left; vertical-align: top;'>
                                                    <asp:TextBox ID="txtFrom" runat="server" Width="85px"></asp:TextBox>
                                                    <asp:RequiredFieldValidator Display="Dynamic" ValidationGroup="Save" ID="RequiredFieldValidator1"
                                                        runat="server" ControlToValidate="txtFrom" class="requiredField" Text="required"
                                                        ErrorMessage="required"></asp:RequiredFieldValidator>
                                                    <cc1:CalendarExtender ID="calFrom" runat="server" TargetControlID="txtFrom" Format="dd MMM yyyy">
                                                    </cc1:CalendarExtender>
                                                    <asp:Label class='labelMessage' ID="label2" runat="server" Text="-"></asp:Label>
                                                    <asp:TextBox ID="txtTo" runat="server" Width="85px"></asp:TextBox>
                                                    <cc1:CalendarExtender ID="calTo" runat="server" TargetControlID="txtTo" Format="dd MMM yyyy">
                                                    </cc1:CalendarExtender>
                                                    <asp:RequiredFieldValidator Display="Dynamic" ValidationGroup="Save" ID="RequiredFieldValidator2"
                                                        runat="server" ControlToValidate="txtTo" class="requiredField" Text="required"
                                                        ErrorMessage="required"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td style='text-align: left; vertical-align: top;'>
                                                    <br style="line-height: 4px" />
                                                    <asp:Button ValidationGroup="Save" ID="btnGenerate" runat="server" Text="Generate" OnClick="btnGenerate_OnClick" />
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <cc1:RoundedCornersExtender Corners="All" BorderColor="#b0d3ff" ID="RoundedCornersExtender1"
                                        TargetControlID="panelReportInfo" runat="server">
                                    </cc1:RoundedCornersExtender>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </td>
        </tr>
    </table>
</asp:Content>
